package com.lizicloud.user.userLogin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * 登录请求DTO
 */
@Data
@Schema(description = "登录请求")
public class LoginDTO {
    
    @NotBlank(message = "用户账号不能为空")
    @Size(min = 3, max = 20, message = "用户账号长度必须在3-20个字符之间")
    @Schema(description = "用户账号", example = "admin")
    private String useraccount;
    
    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码", example = "123456")
    private String password;
}